import ctypes
import traceback


def plugin_setup():
    try:
        ctypes.CDLL('BaseMod.dll')
        ctypes.CDLL('glide3x.dll')
        ctypes.CDLL('D2MultiRes.dll')
        ctypes.CDLL('map/d2hackmap.dll')
    except Exception as e:
        D2Ext.LogMsg(traceback.format_exc())
    return 0
